Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert all exceptions in config files into diagnostics #824

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

zachallaun
Copy link
Collaborator

Only some exceptions raised when evaluating a config file using Config.Reader.eval!/3 were being converted into diagnostics -- any others would result in a function clause error in the config compiler's private to_result/2. This function clause error would then be caught and result in another function clause error down the line, the eventual result of which was that diagnostics for config files would be incorrect.

@zachallaun zachallaun force-pushed the za-config-diagnostics branch from 914e449 to f8b59f4 Compare September 5, 2024 15:14
@zachallaun zachallaun merged commit 6b30273 into main Sep 5, 2024
12 checks passed
@zachallaun zachallaun deleted the za-config-diagnostics branch September 5, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants